package com.sikaryofficial.backend.domain.dto.req.information;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sikaryofficial.common.core.web.page.PageDomain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import java.util.Date;

/**
 * 文章brand列表请求入参
 *
 * @author qinjinyuan
 * @date 2023-10-30
 */
@Getter
@Setter
@ToString
@ApiModel(value = "文章brand列表请求入参", description = "文章brand列表请求入参")
public class ArticleBannerListReq extends PageDomain {
    @ApiModelProperty(value = "活动平台-品牌", example = "SKE")
    private String brand;

    /** Banner名称 */
    @ApiModelProperty(value = "Banner名称")
    private String bannerName;

    /** 可见 0-可见 1-不可见;默认0 */
    @ApiModelProperty(value = "可见 0-可见 1-不可见;默认0")
    @Max(value = 1, message = "visible could not greater than 1")
    @Min(value = 0, message = "visible could not less than 0")
    private Integer visible;
    /**
     * 国家
     */
    @ApiModelProperty(value = "国家")
    private String country;

    /**
     * 区域
     */
    @ApiModelProperty(value = "区域")
    private String area;

    /**
     * 城市
     */
    @ApiModelProperty(value = "城市")
    private String city;

    @ApiModelProperty(value = "开始时间" , example = "2023-11-22 19:30:00")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @ApiModelProperty(value = "结束时间", example = "2023-11-22 19:30:00")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
}
